<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 类似数组解构的对象
        let obj = {
            0:"张三",
            1:"李四",
            2:"王五",
            length:3
        }

        for (let i = 0; i < obj.length; i++) {
            console.log(obj[i]);            
        }
        let arr = ['aa','bb','cc']
        // 如何将 这种类似数组结构的对象转化成数组呢
        let xin = Array.from(obj)
        xin.forEach((item) => {
            console.log(item);
        })
    </script>
</body>
</html>